package com.nbot.common.command.s2b;

import com.nbot.common.command.BotCommand;

public class ReportCctvCommand extends S2bCommand {

    /**
     * 摄像头描述
     */
    private String desc;
    /**
     * 摄像头ip地址
     */
    private String ip;
    /**
     * 是否能ping通
     */
    private boolean pinged;
    /**
     * 报告文字，可以不用
     */
    private String reportStr;

    public ReportCctvCommand() {
        super(BotCommand.TYPE_S2B_REPORT_CCTV);
    }


    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public boolean isPinged() {
        return pinged;
    }

    public void setPinged(boolean pinged) {
        this.pinged = pinged;
    }

    public String getReportStr() {
        return this.desc + "[" + ip + "]的ping状态为" + this.pinged;
    }


    @Override
    public String toString() {
        return "ReportCctvCommand{" +
                "desc='" + desc + '\'' +
                ", ip='" + ip + '\'' +
                ", pinged=" + pinged +
                ", reportStr='" + reportStr + '\'' +
                '}';
    }
}
